<template>
  <div v-if="showSetStatus" class="setStatus">
    <div class="box">
      <div class="cont">
        <div>
          <div class="title">状态设置</div>
          <div class="radio-box">
            <el-radio-group v-model="radio">
              <el-radio :label="3">备选项</el-radio>
              <el-radio :label="6">备选项</el-radio>
              <el-radio :label="9">备选项</el-radio>
            </el-radio-group>
          </div>
          <span class="desc">用户可以看到该世界，并可进入世界</span>
        </div>
      </div>
      <div class="btns">
        <el-button @click="handleCancel">取消</el-button>
        <el-button @click="handleSure" type="primary">确定</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
        radio: 3
    };
  },
  props: {
    showSetStatus: {
      type: Boolean,
      default: false,
    },
  },
  methods: {
    handleCancel() {
      this.$emit("handleCancel");
    },
    handleSure() {
      this.$emit("handleSure");
    },
  },
};
</script>
<style lang="scss" scoped>
.setStatus {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9;
  .box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 336px;
    background: #ffffff;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 30px 30px 20px 30px;
    color: #333;
    .cont {
      display: flex;
      align-items: center;
      .radio-box {
        margin: 12px 0;
        font-size: 12px;
      }
      .title,
      .desc {
        text-align: left;
      }
      .title {
        margin-bottom: 6px;
        color: #000000;
        font-size: 16px;
      }
      .desc {
        text-align: left;
        color: #999;
        font-size: 12px;
      }
    }
    .btns {
      display: flex;
      justify-content: space-around;
      margin-top: 20px;
    }
  }
}
</style>
